var timer;
Page({
  data: {
    count:3
  },

  onLoad() {
    timer = setInterval(()=>{
      var count = this.data.count;
      if(count > 0){
        count--;
        this.setData({count});
      }else{
        clearInterval(timer);
        wx.switchTab({
          url: '/pages/music/music',
        })
      }
    },1000)
  },
  skip(){
    clearInterval(timer);
    wx.switchTab({
      url: '/pages/music/music',
    })
  }
})
